﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Loogn.WP.Notification
{
    class XmlEncoding
    {
        public static string Encoding(string text)
        {
            var newText = text.Replace("<", "&lt;")
                .Replace(">", "&gt;")
                .Replace("'", "&apos;")
                .Replace("\"", "&quot;")
                .Replace("&", "&amp;");
            return newText;
        }
    }
}
